"""自定义装饰器"""

def my_decorator(func):
    def wrapper(request, *args, **kwargs):
        print('自定义装饰器')
        print("请求路径%s" % request.path)
        response = func(request, *args, **kwargs)
        print("函数执行后的装饰")
        return response
    return wrapper
